all: word.c word.h
	gcc -o libword.so -shared word.c -fPIC

clean:
	rm libword.so main

run: all main.rs
	rustc -L. -lword main.rs
	LD_LIBRARY_PATH=. ./main
